package com.walleipt.demo.transitionManager;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
	
		/**
		 * alt+shift+l 生成名称
		 * shift+enter 换行
		 * ctrl+t 查看接口的实现类
		 */
		AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);
		UserDao userDao = (UserDao) applicationContext.getBean("userDao");
		userDao.add() ;
		
		applicationContext.close() ;
		
	}

}
